const express = require("express");
const router = express.Router();
// const db = require("../config/db");
const db = require("../config/dbPool");

router.get("/", function (req, res) {
  const sql = "select * from sys_users";
  const sqlArr = [];
  const callBack = (data) => {
    const { results, fields } = data;
    res.send({
      status:0,
      msg:'hellow world',
      list: results,
    });
  };
  db.query(sql, sqlArr, callBack);
  // res.send("Hello World");
});
module.exports = router;
